//
//  BDHUD.h
//  ProjectForBD
//
//  Created by Jaesun on 16/12/22.
//  Copyright © 2016年 B.D. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"

typedef void(^BDImageViewTap)();

@interface BDHUD : NSObject

@property (nonatomic, strong) UINavigationController *navigationController;

+ (instancetype)shareManager;

+ (instancetype)hud;

- (void)showWords:(NSString*)title;

/**
 *  提示文本
 */
- (void)showLongTimeWords:(NSString*)title;

- (void)showImage:(UIImage *)image toView:(UIView*)superView taped:(BDImageViewTap)tapBlock;

- (void)dismiss;
- (void)dismissHUD;

- (void)hideAnimated:(BOOL)animated;
- (MBProgressHUD *) showHUDAddedTo:(UIView *)view title:(NSString *)title animated:(BOOL)animated;

- (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated;
- (MBProgressHUD *)HUDForView:(UIView *)view;

-(void)showNOneDataViewHUD:(UIView*)superView  top:(CGFloat)topy title:(NSString*)title onClick:(void (^)(void))click;

@property (nonatomic, strong) BDImageViewTap tapBlock;


@end
